package com.yuexin.project.statistic.book.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.yuexin.project.statistic.bookDish.domain.BookDish;
import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuexin.framework.aspectj.lang.annotation.Excel;
import com.yuexin.framework.web.domain.BaseEntity;

/**
 * 报餐明细表 sta_book
 * 
 * @author yuexin
 * @date 2018-10-14
 */
public class Book extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 报餐ID */
	private Integer bookId;
	/** 用户ID */
	private Long userId;
	/** 打菜厨师ID */
	private Integer cookUserId;
	/** 用户名 */
	@Excel(name = "用户名")
	private String userName;
	
	private String userNameMobile;
	/** 就餐日期 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JSONField(format="yyyy-MM-dd") 
	private Date eatDate;
	
	@Excel(name = "就餐日期")
	private String eatDateExcel;
	/** 餐别 */
	@Excel(name = "餐别")
	private String dinnerType;
	/** 报餐方式（0：不选菜品，1：选择菜品） */
	private String types;
	/** 0为不计费，计费则填费用，累加菜品填-1 */
	private String typeValue;
	/** 报餐数量 */
	@Excel(name = "报餐数量")
	private Integer bookNum;
	/** 报餐总额 */
	private BigDecimal totalPrice;
	/** 报餐类型0自食1客餐 */
	@Excel(name = "报餐类型")
	private String bookType;
	/** 是否签到0未签1已签 */
	@Excel(name = "是否签到")
	private String signIn;
	/** 签到时间 */
	private Date signTime;
	@Excel(name = "签到时间")
	private String signTimeExcel;
	/** 是否就餐0未就餐1已就餐 */
	@Excel(name = "是否就餐")
	private String isEat;
	@Excel(name = "菜品明细")
	private String dishes;
	private Date eatTime;
	/** 就餐序号 */
	private Integer sort;
	
	/** 备注 */
	@Excel(name = "备注")
	private String remark;
	/** 菜品明细 */
	private List<BookDish> bookDishes;

	public String getDishes() {
		return dishes;
	}

	public void setDishes(String dishes) {
		this.dishes = dishes;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Integer getBookId() {
		return bookId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	public Integer getCookUserId() {
		return cookUserId;
	}

	public void setCookUserId(Integer cookUserId) {
		this.cookUserId = cookUserId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public String getUserNameMobile() {
		return userNameMobile;
	}

	public void setUserNameMobile(String userNameMobile) {
		this.userNameMobile = userNameMobile;
	}

	public void setEatDate(Date eatDate) {
		this.eatDate = eatDate;
	}

	@JsonFormat(pattern="yyyy-MM-dd")
	public Date getEatDate() {
		return eatDate;
	}

	public String getEatDateExcel() {
		return eatDateExcel;
	}

	public void setEatDateExcel(String eatDateExcel) {
		this.eatDateExcel = eatDateExcel;
	}

	public String getDinnerType() {
		return dinnerType;
	}

	public void setDinnerType(String dinnerType) {
		this.dinnerType = dinnerType;
	}

	public void setBookNum(Integer bookNum) {
		this.bookNum = bookNum;
	}

	public Integer getBookNum() {
		return bookNum;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public void setBookType(String bookType) {
		this.bookType = bookType;
	}

	public String getBookType() {
		return bookType;
	}

	public void setSignIn(String signIn) {
		this.signIn = signIn;
	}

	public String getSignIn() {
		return signIn;
	}

	public void setSignTime(Date signTime) {
		this.signTime = signTime;
	}

	public Date getSignTime() {
		return signTime;
	}
	
	public String getSignTimeExcel() {
		return signTimeExcel;
	}

	public void setSignTimeExcel(String signTimeExcel) {
		this.signTimeExcel = signTimeExcel;
	}

	public void setIsEat(String isEat) {
		this.isEat = isEat;
	}

	public String getIsEat() {
		return isEat;
	}
	
	public Date getEatTime() {
		return eatTime;
	}

	public void setEatTime(Date eatTime) {
		this.eatTime = eatTime;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}

	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public String getTypeValue() {
		return typeValue;
	}

	public void setTypeValue(String typeValue) {
		this.typeValue = typeValue;
	}

	public List<BookDish> getBookDishes() {
		return bookDishes;
	}

	public void setBookDishes(List<BookDish> bookDishes) {
		this.bookDishes = bookDishes;
	}
}
